gtkwindow: Rename function
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 17 May 2021 21:55:47 +0000 (23:55 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 17 May 2021 22:16:48 +0000 (00:16 +0200)
With gtk_grab_notify_foreach() just taking care of emitting crossing
notifications due to the GTK grab change, rename it to a more apt
gtk_synthesize_grab_crossing().

gtk/gtkwindow.c

index add3caf85eafb002197ab830250bc8f3f9b185d5..33e1379a25461822769663393e55ebf6d77d3d11 100644 (file)
@@ -6703,13 +6703,13 @@ gtk_window_get_foci_on_widget (GtkWindow *window,
 }
 
 static void
-gtk_grab_notify_foreach (GtkWidget *child,
-                         GdkDevice *device,
-                         GtkWidget *new_grab_widget,
-                         GtkWidget *old_grab_widget,
-                         gboolean   from_grab,
-                         gboolean   was_shadowed,
-                         gboolean   is_shadowed)
+gtk_synthesize_grab_crossing (GtkWidget *child,
+                              GdkDevice *device,
+                              GtkWidget *new_grab_widget,
+                              GtkWidget *old_grab_widget,
+                              gboolean   from_grab,
+                              gboolean   was_shadowed,
+                              gboolean   is_shadowed)
 {
   g_object_ref (child);
 
@@ -6767,13 +6767,13 @@ gtk_window_propagate_grab_notify (GtkWindow *window,
       if (was_shadowed == is_shadowed)
         break;
 
-      gtk_grab_notify_foreach (l->data,
-                               device,
-                               old_grab_widget,
-                               new_grab_widget,
-                               from_grab,
-                               was_shadowed,
-                               is_shadowed);
+      gtk_synthesize_grab_crossing (l->data,
+                                    device,
+                                    old_grab_widget,
+                                    new_grab_widget,
+                                    from_grab,
+                                    was_shadowed,
+                                    is_shadowed);
 
       gtk_widget_reset_controllers (l->data);
     }